#!/bin/sh
export MYSQL_='mysql --user=mzm --password=mzm'
$MYSQL_ -e "CREATE DATABASE mzm DEFAULT CHARSET utf8;"

export MYSQL="$MYSQL_ --database=mzm"
$MYSQL < ./tables/base_entity.sql
$MYSQL < ./tables/address.sql
$MYSQL < ./tables/category.sql
$MYSQL < ./tables/config.sql
$MYSQL < ./tables/id_gen.sql
$MYSQL < ./tables/media_info.sql
$MYSQL < ./tables/product_info.sql
$MYSQL < ./tables/product_image_info.sql
$MYSQL < ./tables/recommendation_keywords.sql
$MYSQL < ./tables/recommendation.sql
$MYSQL < ./tables/creation_inserts.sql
